package com.wanmait.employment.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;

/**
* Created by Mybatis Generator 2023/05/19
*/
@Data
@TableName(value = "admin")
public class Admin {
    /**
     * id
     */
     @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户名
     */
    @TableField(value = "admin_name")
    private String adminName;

    /**
     * 密码
     */
    @TableField(value = "admin_pass")
    private String adminPass;

    /**
     * 名字
     */
    @TableField(value = "name")
    private String name;

    /**
     * 添加时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 权限（0普通，1总，2后台）
     */
    @TableField(value = "admin_root")
    private Integer adminRoot;

    /**
     * 假删
     */
    @TableField(value = "enable")
    private Boolean enable;

    public static final String COL_ADMIN_NAME = "admin_name";

    public static final String COL_ADMIN_PASS = "admin_pass";

    public static final String COL_NAME = "name";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_ADMIN_ROOT = "admin_root";

    public static final String COL_ENABLE = "enable";
}